﻿@*@model MovieList.Models.Movie*@
@using Media.Core.Helpers.Main;
@using Media.Core.Helpers.Movies;
@{
    ViewBag.Title = "Details";
}

<div class="MovieDetails">
    <h2>@Html.Raw(Model.Title)</h2>
    <h3>(@Model.Year)</h3><br />

    <div class="Inline"><h4 class="Inline">Rating:</h4>@(" " + Model.Rating + "/10 ")</div>
    <div class="Inline"><h4 class="Inline">Runtime:</h4>@(" " +  " min ")</div>
    <div class="Inline"><h4 class="Inline">Quality:</h4>@*@Model.Quality*@@(" ")</div>
    <div class="Inline"><h4 class="Inline">Favourite:</h4>@*@(Model.Favourite == false ? "No" : "Yes")*@ </div>
<div>
<div>

</div>
<h4>Genres</h4>
@*@("|")
@foreach (var genre in Model.Genres)
{

    @(genre + " | ")
}*@
</div>

<h4>Cover</h4>

    @*<img src="@("../../Content/MovieImages/" + Model.Title + ".jpg")" alt="cover"/>  *@
    @*<img src="@Model.Poster"/>*@
    @{
        
        var imagelocation = (GetDirectory.Location("Movie Poster") + Model.image);
        <img src="@imagelocation" />
    }
    


<h4>Directors</h4>
@*@{
    foreach (var Director in Model.Directors)
    {
        <p>@Html.Raw(Director)</p>
    }
}*@
</div>

<h4>Plot</h4>
<div style="width: 450px;">@Html.Raw(Model.Description)</div>

<h4>Story Line</h4>
<div style="width: 450px;"></div>